distance

open override fun distance(vec: Vec2): Double(source)

Get the distance from a point to this line.

The distance is the shortest distance from the point to the line, which is the absolute value of the offset of the point from the line.

Return

The distance from the point to the line.

Parameters

vec

The point to measure the distance from.